package com.plugin.dingding;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class DConfig {
    @Value("${debugModel}")
    public void setDebugModel(boolean debugModel) {
        Clog.l("-------------updatedate ----");
        ZWDingUtil.initZWD(debugModel);
    }

    public void setDomain(String domain) {
        ZWDingUtil.domain = domain;
    }

    public void setAppKey(String appKey){
        ZWDingUtil.appKey = appKey;
    }

    public void setAppSecret(String appSecret){
        ZWDingUtil.appSecret = appSecret;
    }

    public void setAppSecret_dev(String appSecret_dev){
        ZWDingUtil.appSecret_dev = appSecret_dev;
    }

    public void setAppKey_dev(String appKey_dev){
        ZWDingUtil.appKey_dev = appKey_dev;
    }

    public void setDomain_dev(String domain_dev){
        ZWDingUtil.domain_dev = domain_dev;
    }

}
